package com.shanzmoo.platform.manage.api.web.product;

import com.shanzmoo.base.bean.PageRespBase;
import com.shanzmoo.base.bean.SHttpResponse;
import com.shanzmoo.db.module.product.domain.query.SkuQueryVO;
import com.shanzmoo.db.module.product.domain.vo.SkuResultVO;
import com.shanzmoo.platform.manage.api.manager.product.ProductSkuManager;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 商品skumanager
 * @author xueqz
 */
@Api(tags = "商品管理系统-sku")
@RestController
@RequestMapping("/api/product/sku")
public class ProductSkuController {

    @Autowired
    private ProductSkuManager productSkuManager;

    @ApiOperation(value = "获取sku信息")
    @PostMapping("/getSkuList")
    public SHttpResponse<PageRespBase<SkuResultVO>> getSkuList(@RequestBody SkuQueryVO skuQueryVO) {//@Valid @RequestBody

        return productSkuManager.getSkuList(skuQueryVO);
    }

}
